Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug/MessageFiltering #186

Merged
merged 11 commits into from
Nov 4, 2024
Merged

bug/MessageFiltering #186

merged 11 commits into from
Nov 4, 2024

Conversation

dnakhooda
Copy link
Contributor

Changes

Fix Can Message Filtering.

Closes # (issue #184)

Copy link
Contributor

@jr1221 jr1221 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments and obviously going to have to test this.
This looks good, but imo the user should just call add_can_filter and pass in the 4 IDs. That way you avoid the ugly code. The user (ex. cerberus) would just then:
add_can_filter(hcan, id_list_a)
add_can_filter(hcan, id_list_b)
init_can(hcan)

platforms/stm32f405/src/can.c Outdated Show resolved Hide resolved
platforms/stm32f405/src/can.c Outdated Show resolved Hide resolved
@jr1221
Copy link
Contributor

jr1221 commented Nov 2, 2024

One more thing, you can probably remove the id_list stuff from the can_t struct as it isnt being used anymore. Excited to test Sunday!

@jr1221 jr1221 merged commit a5c81fb into main Nov 4, 2024
1 of 2 checks passed
@jr1221 jr1221 deleted the bug/MessageFiltering branch November 4, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants